package xyz.hubery.service;

import xyz.hubery.domain.SysUser;
import xyz.hubery.domain.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysUserRoleService extends IService<SysUserRole>{


    /**
     * 为该用户添加角色
     * @param userId
     * @param roleIds
     */
    void addUserRoles(Long userId, List<Long> roleIds);

    /**
     * 查询用户的角色id
     * @param sysUser
     */
    void addRoleOfUser(SysUser sysUser);
}
